﻿using NiceControls;
using SimpleTerminal.Common;
using SimpleTerminal.Controls;
using SimpleTerminal.Library;
using System;
using System.Drawing;
using System.Windows.Forms;

namespace SimpleTerminal
{
    public partial class Form2 : Form
    {


        NPopup popup;
        public Form2()
        {
            InitializeComponent();
            PictureBox PictureBox = new PictureBox();

            popup = new NPopup(PictureBox);
            PictureBox.Width = button1.Width - 2;
            PictureBox.Height = 100;
            PictureBox.BackColor = Color.Pink;
            popup.Closed += delegate {
                Console.WriteLine("已关闭");
            };
        }
        protected override void WndProc(ref Message m)
        {
          //  Log.Debug("Form2", m.ToString());
            base.WndProc(ref m);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            // tabLayoutGroup1.ToggleViewMode();
        }


        private void button1_Click_1(object sender, EventArgs e)
        {


        }

        private void button1_Click_2(object sender, EventArgs e)
        {
            Console.WriteLine("点击");
            popup.Show(button1);
        }
    }
}
